package es.deusto.ingenieria.sd.tralala.server.data;
import java.sql.Date;
import java.sql.Time;
import java.util.ArrayList;
import java.util.List;
/*
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Join;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
*/
//@PersistenceCapable
public class Play {
	//@PrimaryKey
	//@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private int id;
	private Date date;
	private Time time;
	// private User us;
	private Song song;

	//@Join
	private List<User> users = new ArrayList<User>();
	//@Join
	private List<Song> songs = new ArrayList<Song>();

	public Play(Date date2, Time time, Song s) {
		super();
		this.date = date2;
		this.time = time;
		this.song = s;

	}

	public Play(Date date, Time time, Song song, List<User> users,
			List<Song> songs) {
		super();
		this.date = date;
		this.time = time;
		this.song = song;
		this.users = users;
		this.songs = songs;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Time getTime() {
		return time;
	}

	public void setTime(Time time) {
		this.time = time;
	}

	public Song getSong() {
		return song;
	}

	public void setSong(Song song) {
		this.song = song;
	}

}
